package com.gsk.europepharma.salesReport.hibernate.base;

import java.io.Serializable;


/**
 * This is an object that contains data related to the mv_sp_bo_sales_report_pm_cumul table.
 * Do not modify this class because it will be overwritten if the configuration file
 * related to this class is modified.
 *
 * @hibernate.class
 *  table="mv_sp_bo_sales_report_pm_cumul"
 */

public abstract class BasemvSpBoSalesReportPmCumul  implements Serializable {

	public static String REF = "mvSpBoSalesReportPmCumul";
	public static String PROP_ZONE_NAME = "zoneName";
	public static String PROP_UN_MARCH1 = "unMarch1";
	public static String PROP_SECT_NAME = "sectName";
	public static String PROP_MARCHE_NAME = "marcheName";
	public static String PROP_RS_NAME = "rsName";
	public static String PROP_UN = "un";
	public static String PROP_PM = "pm";
	public static String PROP_PERIODE = "periode";
	public static String PROP_PM1 = "pm1";
	public static String PROP_UGA_CODE = "ugaCode";
	public static String PROP_PRODUIT = "produit";
	public static String PROP_REG_NAME = "regName";
	public static String PROP_UN_MARCH = "unMarch";
	public static String PROP_ID = "id";
	public static String PROP_CODE_PRESC_IMS = "codePrescIms";
	public static String PROP_UN1 = "un1";


	// constructors
	public BasemvSpBoSalesReportPmCumul () {
		initialize();
	}

	/**
	 * Constructor for primary key
	 */
	public BasemvSpBoSalesReportPmCumul (java.lang.Integer id) {
		this.setId(id);
		initialize();
	}

	protected void initialize () {}



	private int hashCode = Integer.MIN_VALUE;

	// primary key
	private java.lang.Integer id;

	// fields
	private java.lang.String marcheName;
	private java.lang.String produit;
	private java.lang.String periode;
	private java.lang.String rsName;
	private java.lang.String zoneName;
	private java.lang.String regName;
	private java.lang.String sectName;
	private java.lang.String ugaCode;
	private java.lang.String codePrescIms;
	private java.lang.Double un;
	private java.lang.Double unMarch;
	private java.lang.Double pm;
	private java.lang.Double un1;
	private java.lang.Double unMarch1;
	private java.lang.Double pm1;



	/**
	 * Return the unique identifier of this class
     * @hibernate.id
     *  column="ID"
     */
	public java.lang.Integer getId () {
		return id;
	}

	/**
	 * Set the unique identifier of this class
	 * @param id the new ID
	 */
	public void setId (java.lang.Integer id) {
		this.id = id;
		this.hashCode = Integer.MIN_VALUE;
	}




	/**
	 * Return the value associated with the column: MARCHE_NAME
	 */
	public java.lang.String getMarcheName () {
		return marcheName;
	}

	/**
	 * Set the value related to the column: MARCHE_NAME
	 * @param marcheName the MARCHE_NAME value
	 */
	public void setMarcheName (java.lang.String marcheName) {
		this.marcheName = marcheName;
	}



	/**
	 * Return the value associated with the column: PRODUIT
	 */
	public java.lang.String getProduit () {
		return produit;
	}

	/**
	 * Set the value related to the column: PRODUIT
	 * @param produit the PRODUIT value
	 */
	public void setProduit (java.lang.String produit) {
		this.produit = produit;
	}



	/**
	 * Return the value associated with the column: PERIODE
	 */
	public java.lang.String getPeriode () {
		return periode;
	}

	/**
	 * Set the value related to the column: PERIODE
	 * @param periode the PERIODE value
	 */
	public void setPeriode (java.lang.String periode) {
		this.periode = periode;
	}



	/**
	 * Return the value associated with the column: RS_NAME
	 */
	public java.lang.String getRsName () {
		return rsName;
	}

	/**
	 * Set the value related to the column: RS_NAME
	 * @param rsName the RS_NAME value
	 */
	public void setRsName (java.lang.String rsName) {
		this.rsName = rsName;
	}



	/**
	 * Return the value associated with the column: ZONE_NAME
	 */
	public java.lang.String getZoneName () {
		return zoneName;
	}

	/**
	 * Set the value related to the column: ZONE_NAME
	 * @param zoneName the ZONE_NAME value
	 */
	public void setZoneName (java.lang.String zoneName) {
		this.zoneName = zoneName;
	}



	/**
	 * Return the value associated with the column: REG_NAME
	 */
	public java.lang.String getRegName () {
		return regName;
	}

	/**
	 * Set the value related to the column: REG_NAME
	 * @param regName the REG_NAME value
	 */
	public void setRegName (java.lang.String regName) {
		this.regName = regName;
	}



	/**
	 * Return the value associated with the column: SECT_NAME
	 */
	public java.lang.String getSectName () {
		return sectName;
	}

	/**
	 * Set the value related to the column: SECT_NAME
	 * @param sectName the SECT_NAME value
	 */
	public void setSectName (java.lang.String sectName) {
		this.sectName = sectName;
	}



	/**
	 * Return the value associated with the column: UGA_CODE
	 */
	public java.lang.String getUgaCode () {
		return ugaCode;
	}

	/**
	 * Set the value related to the column: UGA_CODE
	 * @param ugaCode the UGA_CODE value
	 */
	public void setUgaCode (java.lang.String ugaCode) {
		this.ugaCode = ugaCode;
	}



	/**
	 * Return the value associated with the column: C_PRESC_IMS
	 */
	public java.lang.String getCodePrescIms () {
		return codePrescIms;
	}

	/**
	 * Set the value related to the column: C_PRESC_IMS
	 * @param codePrescIms the C_PRESC_IMS value
	 */
	public void setCodePrescIms (java.lang.String codePrescIms) {
		this.codePrescIms = codePrescIms;
	}



	/**
	 * Return the value associated with the column: UN
	 */
	public java.lang.Double getUn () {
		return un;
	}

	/**
	 * Set the value related to the column: UN
	 * @param un the UN value
	 */
	public void setUn (java.lang.Double un) {
		this.un = un;
	}



	/**
	 * Return the value associated with the column: UN_MARCH
	 */
	public java.lang.Double getUnMarch () {
		return unMarch;
	}

	/**
	 * Set the value related to the column: UN_MARCH
	 * @param unMarch the UN_MARCH value
	 */
	public void setUnMarch (java.lang.Double unMarch) {
		this.unMarch = unMarch;
	}



	/**
	 * Return the value associated with the column: PM
	 */
	public java.lang.Double getPm () {
		return pm;
	}

	/**
	 * Set the value related to the column: PM
	 * @param pm the PM value
	 */
	public void setPm (java.lang.Double pm) {
		this.pm = pm;
	}



	/**
	 * Return the value associated with the column: UN_1
	 */
	public java.lang.Double getUn1 () {
		return un1;
	}

	/**
	 * Set the value related to the column: UN_1
	 * @param un1 the UN_1 value
	 */
	public void setUn1 (java.lang.Double un1) {
		this.un1 = un1;
	}



	/**
	 * Return the value associated with the column: UN_MARCH_1
	 */
	public java.lang.Double getUnMarch1 () {
		return unMarch1;
	}

	/**
	 * Set the value related to the column: UN_MARCH_1
	 * @param unMarch1 the UN_MARCH_1 value
	 */
	public void setUnMarch1 (java.lang.Double unMarch1) {
		this.unMarch1 = unMarch1;
	}



	/**
	 * Return the value associated with the column: PM_1
	 */
	public java.lang.Double getPm1 () {
		return pm1;
	}

	/**
	 * Set the value related to the column: PM_1
	 * @param pm1 the PM_1 value
	 */
	public void setPm1 (java.lang.Double pm1) {
		this.pm1 = pm1;
	}




	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof com.gsk.europepharma.salesReport.hibernate.mvSpBoSalesReportPmCumul)) return false;
		else {
			com.gsk.europepharma.salesReport.hibernate.mvSpBoSalesReportPmCumul mvSpBoSalesReportPmCumul = (com.gsk.europepharma.salesReport.hibernate.mvSpBoSalesReportPmCumul) obj;
			if (null == this.getId() || null == mvSpBoSalesReportPmCumul.getId()) return false;
			else return (this.getId().equals(mvSpBoSalesReportPmCumul.getId()));
		}
	}

	public int hashCode () {
		if (Integer.MIN_VALUE == this.hashCode) {
			if (null == this.getId()) return super.hashCode();
			else {
				String hashStr = this.getClass().getName() + ":" + this.getId().hashCode();
				this.hashCode = hashStr.hashCode();
			}
		}
		return this.hashCode;
	}


	public String toString () {
		return super.toString();
	}


}